<?php session_start();?>

<?php if(isset($_SESSION['user'])){ ?> 
<html>
<head>
<title>Feedback Details</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style1 {
	font-family: Cambria;
	color: #000080;
}
.style2 {color: #000099}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (Untitled-1) -->
<table width="620" height="650" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
	<tr>
		<td><table width="620" height="204" border="0" background="images/report_01.png">
          <tr height="10%">
            <td><div align="center">
              <h1 class="style1">NAWODAYA INSTITUTE (PVT) LTD </h1>
            </div></td>
          </tr>
          <tr height="10%">
            <td bgcolor="#FFFFFF"> <div align="center" class="style2">No: 66/12, <br>Yatiyanthota road,<br>Awissawella. </div></td>
          </tr>
          <tr>
            <td><div align="center" class="style2">Tel : 036-2230454/Fax : 94-3-2687014<br>Email : avinavodaya@gmail.com</div></td>
          </tr>
		  
		  <tr>
		    <td>&nbsp;</td>
		  </tr>
          <tr>
            <td height="3" background="images/report_04.png" style="background-repeat:no-repeat">&nbsp;</td>
          </tr>
        </table></td>
	</tr>
	<tr>
		<td><table width="620" height="700" border="0" background="images/report_02.png">
          <tr>
            <td height="100" colspan="3"><h3 align="center">Feedback Details </h3>
              <br/>
			 <?php 
			$id=$_GET['id'];
			
			include'../logic/Classes/db.php';
			
			$x=new DbConnect();
			$con=$x->getConnection();
		
		    $sql="select feedback.feedback,feedback.com_by,subject_code.subject,subject_code.grade,feedback.related,feedback.com_date from feedback,subject_code where feedback.sub_gr=subject_code.sub_gr and feedback_id='$id'";
			$result=mysql_query($sql,$con);
			
			$time_now=mktime(date('H')+5,date('i')+30,date('s'),date('m'),date('d'),date('Y'));
		    ?>
			<?php while($row=mysql_fetch_array($result) ) { ?>
			  <table width="100%" border="0">
			    <tr>
                  <td width="29%"><strong>Subject</strong></td>
                  <td width="3%"><strong>:</strong></td>
                  <td width="68%"><?php echo $row['subject']; ?></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td><strong>Grade</strong></td>
                  <td><strong>:</strong></td>
                  <td><?php echo $row['grade']; ?></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td><strong>Related To </strong></td>
                  <td><strong>:</strong></td>
                  <td><?php echo $row['related']; ?></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td><strong>Commented By</strong> </td>
                  <td><strong>:</strong></td>
                  <td><?php echo $row['com_by']; ?></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td><strong>Commented Date</strong> </td>
                  <td><strong>:</strong></td>
                  <td><?php echo $row['com_date']; ?></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td><strong>Feedback</strong></td>
                  <td><strong>:</strong></td>
                  <td><?php echo $row['feedback']; ?></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
              </table>
			 
			 
			    <?php } ?>		    </td>
          </tr>
          <tr height="70%">
            <td height="20" colspan="3"></td>
          </tr>
          
          <tr height="70%">
            <td height="20" colspan="3"></td>
          </tr>
          <tr height="70%">
            <td height="20" colspan="3"></td>
          </tr>
          <tr height="70%">
            <td height="20" colspan="3"></td>
          </tr>
          <tr height="70%">
            <td height="20" colspan="3"></td>
          </tr>
          <tr height="70%">
            <td height="20" colspan="3"></td>
          </tr>
          <tr height="70%">
            <td height="20" colspan="3"></td>
          </tr>
          <tr height="70%">
            <td height="20" colspan="3"></td>
          </tr>
          <tr height="70%">
            <td height="20" colspan="3"></td>
          </tr>
          
          <tr height="70%">
            <td height="20" background="images/Untitled-1.jpg">&nbsp;&nbsp;<?php echo $_SESSION['user']; ?></td>
            <td></td>
            <td background="images/Untitled-1.jpg">&nbsp;&nbsp;&nbsp;<?php echo date('Y-m-d',$time_now);  ?></td>
          </tr>
          <tr height="70%">
            <td width="104" height="20"><strong>&nbsp;&nbsp;Issued By <strong> </td>
            <td width="385"></td>
            <td width="117" >&nbsp;&nbsp;<strong>Issued</strong> <strong>Date</strong></td>
          </tr>
          <tr height="70%"><td colspan="3">&nbsp;</td></tr>
          
         
        </table></td>
	</tr>
	<tr>
		<td><table width="620" height="42" border="0" background="images/report_03.png">
          <tr>
            <td><div align="left" class="style2">
              <div align="center">Generated By NAWODAYA MIS</div>
            </div></td>
          </tr>
        </table></td>
	</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>
<?php  } else { header("location:../../index.php");   }?>